package utils;

import java.util.Comparator;

import data.Carrier;

public class CarrierMinCapacityComparator implements Comparator<Carrier> {

    @Override
    public int compare(Carrier arg0, Carrier arg1) {
	if (arg0.getCapacity() > arg1.getCapacity())
	    return -1;
	else if (arg0.getCapacity() == arg1.getCapacity())
	    return 0;
	else
	    return 1;
    }
}